package dwz.cms.article.common;

import java.util.HashMap;
import java.util.Map;

/** 
* Created by Eclipse
* @author : Yating
* @version:2017年5月22日 下午1:02:19 
* 类说明 
*/
public enum AritcleStatusType implements BaseEnum<AritcleStatusType, String>{
	draft("0","草稿"),
	auditfailed("1","审核失败"),
	preaudit("2","待审核"),
	prepublish("3","待发布"),
    published("4","已发布"),
    revoke("5","已撤销");
      

    private String value;  
    private String displayName;  
      
    static Map<String,AritcleStatusType> enumMap=new HashMap<String, AritcleStatusType>();  
    static{  
        for(AritcleStatusType type:AritcleStatusType.values()){  
            enumMap.put(type.getValue(), type);  
        }  
    }  
      
    private AritcleStatusType(String value,String displayName) {  
         this.value=value;  
         this.displayName=displayName;  
    }  
      
    public String getValue() {  
        return value;  
    }  
    public void setValue(String value) {  
        this.value = value;  
    }  
    public String getDisplayName() {  
        return displayName;  
    }  
    public void setDisplayName(String displayName) {  
        this.displayName = displayName;  
    }  
      
    public static AritcleStatusType getEnum(String value) {  
        return enumMap.get(value);  
    }  
}  
 